From: Chad Horohoe Date: Fri, 20 Feb 2009 18:57:13 +0000 (+0000) Subject: Make name box enabled/disabled based on right to use it, not on whether we're changin... X-Git-Tag: 1.31.0-rc.0~42760 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=57c6c835ebf053bcce0ae81c8013e0320931ca4d;p=lhc%2Fweb%2Fwiklou.git Make name box enabled/disabled based on right to use it, not on whether we're changing ourself. --- diff --git a/includes/specials/SpecialResetpass.php b/includes/specials/SpecialResetpass.php index 60453bba9a..49e2530d4b 100644 --- a/includes/specials/SpecialResetpass.php +++ b/includes/specials/SpecialResetpass.php @@ -125,7 +125,7 @@ class SpecialResetpass extends SpecialPage { wfMsgExt( 'resetpass_text', array( 'parse' ) ) . Xml::openElement( 'table', array( 'id' => 'mw-resetpass-table' ) ) . $this->pretty( array( - array( 'wpName', 'username', 'text', $this->mUserName, !$this->mSelfChange ), + array( 'wpName', 'username', 'text', $this->mUserName, $wgUser->isAllowed( 'reset-passwords' ) ), array( 'wpPassword', $oldpassMsg, 'password', $this->mOldpass, $this->mSelfChange ), array( 'wpNewPassword', 'newpassword', 'password', '', true ), array( 'wpRetype', 'retypenew', 'password', '', true ),